package com.exonline.commons.entity;
/**
 * @desc 科目实体类
 * @author hbrj
 */
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Subject {
    public String subjectName;//科目名称
    public List<Courses> courses = new ArrayList<>();//科目所包含课程
    public List<Courses> addCourses (Courses courses) {
        this.courses.add(courses);
        return this.courses;
    }
}
